package com.mask.im.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mask.im.business.model.entity.SysRoleEntity;
import com.mask.im.business.model.dto.ResourceListDTO;
import com.mask.im.business.model.dto.RoleDTO;
import com.mask.im.business.model.vo.ConditionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色管理
 *
 * @author jian
 */
@Mapper
@Repository
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {
    List<String> selectRoleList(@Param("userInfoId") Long userInfoId);

    List<ResourceListDTO> resourceInit();

    List<RoleDTO> listRoles(@Param("current") Long current, @Param("size") Long size, @Param("conditionVO") ConditionVO conditionVO);
}
